package com.usyk.util;

import java.util.Map;

/**
 * User: oleksii.usyk@gmail.com
 * Date: 04.12.11
 * Time: 0:02
 */
public class Party {
    
    private String name;
    private Map<String, Double> views;
    private Map<String, Double> adminResourcePerRegion;
    private Double finResource;
    private Map<String, Double> personalResourcePerRegion;
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, Double> getViews() {
        return views;
    }

    public void setViews(Map<String, Double> views) {
        this.views = views;
    }

    public Map<String, Double> getAdminResourcePerRegion() {
        return adminResourcePerRegion;
    }

    public void setAdminResourcePerRegion(Map<String, Double> adminResourcePerRegion) {
        this.adminResourcePerRegion = adminResourcePerRegion;
    }

    public Double getFinResource() {
        return finResource;
    }

    public void setFinResource(Double finResource) {
        this.finResource = finResource;
    }

    public Map<String, Double> getPersonalResourcePerRegion() {
        return personalResourcePerRegion;
    }

    public void setPersonalResourcePerRegion(Map<String, Double> personalResourcePerRegion) {
        this.personalResourcePerRegion = personalResourcePerRegion;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Party party = (Party) o;

        if (name != null ? !name.equals(party.name) : party.name != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return name != null ? name.hashCode() : 0;
    }
}
